//----------------------------------------------------------------------------------------------
//	Filename:	Object.cpp
//	Author:		Keith Bugeja
//	Date:		27/02/2010
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
#include "Object.h"

using namespace Illumina::Core;
//----------------------------------------------------------------------------------------------
Object::~Object() { }
//----------------------------------------------------------------------------------------------
Object::Object(UniqueIDType p_uidType)
{
	Object::Initialise(p_uidType);
	m_strName = m_uid.ToString();
}
//----------------------------------------------------------------------------------------------
Object::Object(std::string p_strObjectName, UniqueIDType p_uidType)
{
	Object::Initialise(p_uidType);
	m_strName = p_strObjectName;
}
//----------------------------------------------------------------------------------------------
size_t Object::GetHashCode(void) const 
{ 
	boost::hash<std::string> hash;  
	return hash(m_strName);
}
//----------------------------------------------------------------------------------------------
std::string Object::ToString(void) const 
{
	return boost::str(boost::format("Name : %s, ID : %s") 
		% m_strName % m_uid.ToString());
}
//----------------------------------------------------------------------------------------------
